convertScannedObjectCoordinatesToViewCoordinates
Returns a new ScannedObject where all coordinates of the given scannedObject (its bounding box, and the corner points of a ScannedCode) are converted into view coordinates, relative to this view. Uses AVCaptureVideoPreviewLayer.transformedMetadataObject(for:), so orientation, scaling and cropping are taken into account.
Throws
If this view has no previewOutput yet, if the scannedObject was not created by VisionCamera, or if it cannot be transformed.